Optimal. Leaf size=48 \[ -\frac{a^3 x^{-2 n}}{2 n}-\frac{3 a^2 b x^{-n}}{n}+3 a b^2 \log (x)+\frac{b^3 x^n}{n} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.061919, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118 \[ -\frac{a^3 x^{-2 n}}{2 n}-\frac{3 a^2 b x^{-n}}{n}+3 a b^2 \log (x)+\frac{b^3 x^n}{n} \]
Antiderivative was successfully verified.
[In] Int[x^(-1 - 2*n)*(a + b*x^n)^3,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ - \frac{a^{3} x^{- 2 n}}{2 n} - \frac{3 a^{2} b x^{- n}}{n} + \frac{3 a b^{2} \log{\left (x^{n} \right )}}{n} + \frac{\int ^{x^{n}} b^{3}\, dx}{n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**(-1-2*n)*(a+b*x**n)**3,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0696971, size = 45, normalized size = 0.94 \[ -\frac{a^3 x^{-2 n}+6 a^2 b x^{-n}-6 a b^2 n \log (x)-2 b^3 x^n}{2 n} \]
Antiderivative was successfully verified.
[In] Integrate[x^(-1 - 2*n)*(a + b*x^n)^3,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.023, size = 61, normalized size = 1.3 \[{\frac{1}{ \left ({{\rm e}^{n\ln \left ( x \right ) }} \right ) ^{2}} \left ({\frac{{b}^{3} \left ({{\rm e}^{n\ln \left ( x \right ) }} \right ) ^{3}}{n}}+3\,a{b}^{2}\ln \left ( x \right ) \left ({{\rm e}^{n\ln \left ( x \right ) }} \right ) ^{2}-{\frac{{a}^{3}}{2\,n}}-3\,{\frac{{a}^{2}b{{\rm e}^{n\ln \left ( x \right ) }}}{n}} \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^(-1-2*n)*(a+b*x^n)^3,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^n + a)^3*x^(-2*n - 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.225111, size = 69, normalized size = 1.44 \[ \frac{6 \, a b^{2} n x^{2 \, n} \log \left (x\right ) + 2 \, b^{3} x^{3 \, n} - 6 \, a^{2} b x^{n} - a^{3}}{2 \, n x^{2 \, n}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^n + a)^3*x^(-2*n - 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**(-1-2*n)*(a+b*x**n)**3,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.220434, size = 73, normalized size = 1.52 \[ \frac{{\left (6 \, a b^{2} n e^{\left (2 \, n{\rm ln}\left (x\right )\right )}{\rm ln}\left (x\right ) + 2 \, b^{3} e^{\left (3 \, n{\rm ln}\left (x\right )\right )} - 6 \, a^{2} b e^{\left (n{\rm ln}\left (x\right )\right )} - a^{3}\right )} e^{\left (-2 \, n{\rm ln}\left (x\right )\right )}}{2 \, n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x^n + a)^3*x^(-2*n - 1),x, algorithm="giac")
[Out]